package com.qipa.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqWorkConfig {

    //声明队列，自动创建队列
    @Bean
    public Queue workQ1(){
        return new Queue("work_sb_mq_q");
    }



}
